import Vue from 'vue'
import Vuex from 'vuex'
import metro from './modules/metro'
import traffic from './trafficMod/traffic'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    show: true,
    token: "",
    address: {},
  },
  getters: {},
  mutations: {
    navShow(state, payload) {
      state.show = payload;
    },
    setToken(state, payload) {
      state.token = payload;
    },
    setAddress(state, payload) {
      state.address = payload;
    }

  },
  actions: {},
  modules: {
    metro,
    traffic,
  },





})